Repository navigation
FormAT 0.30.1: the macOS build installs keyring - #12
Merged
Merged
Conversation
…the two lists together Both macOS builds of the 0.30.0 release run stopped at the freeze with PackageNotFoundError for keyring. keyring==25.7.0 went into backend/requirements.txt in 0.27.0 and the freeze scripts name it, but backend/oc_install installs backend/requirements_macos.txt on macOS and that list never got the line. It now has it. backend/tests/test_requirements_lists.py checks that every requirement of requirements.txt that is not Windows-only is in the macOS list with the same pin, and that every package the two freeze scripts name with --copy-metadata, --collect-submodules, --collect-data or --hidden-import is in both lists (websockets and certifi through uvicorn[standard] and httpx, proved from the installed metadata). Copied into a copy of origin/main it fails twice, naming keyring; here 4 passed.
Version sites, as in the last release: backend/app/__init__.py, frontend/src/version.ts, frontend/package.json, both version fields at the top of frontend/package-lock.json, src-tauri/Cargo.toml, the format package entry in src-tauri/Cargo.lock, src-tauri/tauri.conf.json, the README badge, and the "Current build version" and "Last updated" lines of both HASHOUT logs. CHANGELOG.md has the 0.30.1 entry for the macOS engine list. Run on the commit before this one, in a local clone: npm ci --dry-run, npm audit (0 vulnerabilities), typecheck, build, compileall, the engine booted and /api/health probed, the whole engine suite (136 passed), shell syntax, the markdown check, agents sync --check (114 commands, up to date), and the window smoke (2 passed). After the version change: tests/test_f4_versions.py and tests/test_requirements_lists.py 7 passed. Left as they are: the SECURITY.md supported-versions row (0.26.x).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
FormAT 0.30.1: the macOS build installs keyring
Two commits on top of 0.30.0: the fix to the list of engine packages macOS installs, with a test that keeps it in step, and the release.
What failed
Both macOS builds of FormAT in the 0.30.0 release run stopped at the freeze step:
The cause
0.27.0 added
keyring==25.7.0tobackend/requirements.txtand the freeze scripts name it (--collect-submodules keyring --copy-metadata keyring), but macOS installs the engine frombackend/requirements_macos.txt(backend/oc_install, its darwin branch), a separate list kept by hand that never got the line. Linux and Windows install fromrequirements.txt, so their builds passed.What changes for people
backend/requirements_macos.txthaskeyring==25.7.0, in the same place as inrequirements.txt.keyringis installed and the choice is sealed in the macOS keychain, so a choice of Allowed saved without a seal reads as Ask, with the sentence in Settings, until it is chosen again.backend/tests/test_requirements_lists.py, checks that every requirement ofrequirements.txtthat is not Windows-only is in the macOS list with the same pin, and that every package the two freeze scripts name with--copy-metadata,--collect-submodules,--collect-dataor--hidden-importis in both lists (websockets and certifi throughuvicorn[standard]andhttpx, proved from the installed metadata).How it was checked
./format installandformat_oc_installrunsetup/install_all, which runsbackend/oc_install(macOS:requirements_macos.txt; Linux:requirements.txt);format.bat installrunssetup/install_all.batandbackend/oc_install.bat(requirements.txt);install_desktop,install_voice,install_browserand their.battwins install the desktop, voice and browser lists the same way on every system, with no macOS twin and no macOS branch, and the freeze takes what comes from them only when it is installed.build_appand the compiler's macOS setup go through./format installand./format install-desktop. With the line in, every third-party module the engine imports comes from the list each system installs or from what its packages bring.Checks rehearsed
On a local clone of the fix commit a740ae1; the version test on the release commit.
npm ci --dry-run,npm audit,npm run typecheck,npm run buildpython -m compileall -q app format_engine.py; boot uvicorn and probe/api/health{"ok":true,"name":"FormAT","version":"0.30.0"}on the commit before the releasepython -m pytest tests -q -p no:cacheproviderinbackendpytest frontend/tests/windowafternpm run buildbash -non the shell scripts; no em dash or emoji in tracked markdown./format agents sync --checknpm ci --dry-runafter the release committests/test_f4_versions.pyafter the release commitThe workflow has no macOS or Windows job. The new test reads files as UTF-8 through
pathliband needs no/proc, shell or keychain.Merge with a merge commit. Do not squash and do not rebase-merge.
Held
Not run